]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
perf-tool: Only 'restore' gnome-shell if run with --replace
authorJonas Ådahl <jadahl@gmail.com>
Tue, 16 Mar 2021 09:29:36 +0000 (10:29 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 25 Nov 2022 21:09:37 +0000 (22:09 +0100)
Otherwise the perf tool will fork and spawn a gnome-shell process
that'll just go and fail.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1349>

src/gnome-shell-perf-tool.in

index a1b5d5994200e9dac59eeb166624c5d4148b4ca5..f1df14b99fd5488303a6ac50fb45a27466c3fdc2 100755 (executable)
@@ -320,7 +320,7 @@ if args:
 
 normal_exit = run_performance_test()
 if normal_exit:
-    if not options.hwtest:
+    if not options.hwtest and options.replace:
         restore_shell()
 else:
     sys.exit(1)